#!/bin/sh

export NDK=/home/chenc/workspace/Android/Sdk/ndk-bundle
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/
export PLATFORM=$NDK/platforms/android-8/arch-arm/
export PREFIX=$PWD/../libmicrohttpd-android-install
export CC=$PREBUILT/bin/arm-linux-androideabi-gcc
export CXX=$PREBUILT/bin/arm-linux-androideabi-g++
export LDFLAGS=--sysroot=$PLATFORM
export CFLAGS=-I$PLATFORM/usr/include
export CXXFLAGS=$CFLAGS



./configure --prefix=$PREFIX \
--with-sysroot=$PLATFORM  \
--with-pic \
--host=arm-none-linux-androideabi \
